<?php

$total = 10;
 $result["total"] =$total;
 $result["footer"] =array();
 $data = array();
 for($i = 0 ;$i<$total;$i++){
     $single["id"] = $i;
     $single["name"] = "测试分组名$i";
     $single["count"] = rand(4,30);


     $data[]=$single;
 }

$result["rows"] = $data;

header('Content-type: application/json');
echo  json_encode($result);
